cmake_minimum_required(VERSION 3.10)
project(RayTracing)
 
set(CMAKE_CXX_STANDARD 17)
find_package(Threads)
 
add_executable(RayTracing main.cpp Object.hpp Vector.cpp Vector.hpp Sphere.hpp global.hpp Triangle.hpp Scene.cpp
        Scene.hpp Light.hpp AreaLight.hpp BVH.cpp BVH.hpp Bounds3.hpp Ray.hpp Material.hpp Intersection.hpp
        Renderer.cpp Renderer.hpp)
 
target_link_libraries (${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT})